//封装本地存储存储数据与读取数据方法
//存储数据
export const SET_ITEM = (key: string, val: string | any) => {
     return localStorage.setItem(key, JSON.stringify(val))
}
//本地存储获取数据
export const GET_ITEM = (key: string) => {
     return JSON.parse(localStorage.getItem(key) as string)
}
//本地存储删除数据方法
export const CLEAR_ITEM = () => {
     localStorage.clear()
}
